home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-03-19 | 1.9 KB | 95 lines | [TEXT/KAHL] |
- /* Add.cp -- Modal dialog */
- /* Created 01/01/95 12:01 PM by AppMaker */
-
- /* This module overrides the AppMaker-generated code in zAdd. */
- /* It provides a place for you to add your own code and still be able to */
- /* generate code for new changes to the user interface. This module will */
- /* not be regenerated by AppMaker unless you delete it. Its superclass, */
- /* zAdd, may be regenerated to handle user interface changes */
- /* without losing your hand-coded changes to this module. */
-
- #include <Commands.h>
- #include <Global.h>
- #include <CBartender.h>
- #include <CDirectorOwner.h>
- #include <TBUtilities.h>
- #include <CAMButton.h>
- #include <CPicture.h>
- #include <CAMStaticText.h>
- #include <CAMDialogText.h>
- #include <CLabeledGroup.h>
- #include <CAMRadioControl.h>
- #include <CAMCheckBox.h>
- #include <CAMPopupPane.h>
- #include "CmdCodes.h"
- #include "Add.h"
-
- extern CBartender *gBartender; /* The menu handling object */
-
-
- /*----------*/
- void DoAdd (CDirectorOwner *aSupervisor)
- {
- CAdd *dialog;
- long dismisser;
-
- dialog = NULL;
- TRY {
- dialog = new CAdd;
- dialog->IAdd (aSupervisor);
-
- /* initialize dialog panes */
-
- dialog->BeginDialog ();
- dismisser = dialog->DoModalDialog (cmdOK);
-
- if (dismisser == cmdOK) {
- /* extract values from dialog panes */
- }
-
- ForgetObject (dialog);
- } CATCH {
- ForgetObject (dialog);
- } ENDTRY;
-
- } /* DoAdd */
-
- /*----------*/
- void CAdd::IAdd (CDirectorOwner *aSupervisor)
- {
- inherited::IZAdd (aSupervisor);
-
- // any additional initialization for your dialog
-
- } /* IAdd */
-
- /*----------*/
- void CAdd::UpdateMenus (void)
- {
- inherited::UpdateMenus ();
-
- } /* UpdateMenus */
-
- /*----------*/
- void CAdd::DoCommand (long theCommand)
- {
- switch (theCommand) {
-
- default:
- inherited::DoCommand (theCommand);
- break;
- } /* switch */
-
- } /* DoCommand */
-
- /*----------*/
- void CAdd::ProviderChanged (CCollaborator *aProvider,
- long reason,
- void* info)
-
- {
-
- } /* ProviderChanged */
-
- /* Add */
-